package org.dizem.groupon.dao.impl;

import org.dizem.groupon.dao.DAOSupport;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.util.List;

/**
 * User: dizem@126.com
 * Time: 11-6-23 下午1:16
 */
public class DAOImplSupport<T> extends HibernateDaoSupport implements DAOSupport<T> {
	public void save(T object) {
		getHibernateTemplate().save(object);
	}

	public void delete(T object) {
		getHibernateTemplate().delete(object);
	}

	public void update(T object) {
		getHibernateTemplate().update(object);
	}

	public T getById(int id) {
		return null;
	}

	public List<T> loadAll() {
		return null;
	}

	public List<T> load(int firstResult, int maxResult) {
		return null;
	}

	public int getCount() {
		return loadAll().size();
	}
}
